package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by windy on 16-11-1.
 */
@Entity
@Table(name = "channel_statistics")
@DynamicInsert(value = true)
@DynamicUpdate(value = true)
public class MerchantChannelStatistics extends IDEntityMall {

    @Column(columnDefinition = "bigint(20) comment '渠道ID'")
    private Long channelId;
    @Column(columnDefinition = "bigint(20) comment '平台ID'")
    private Long mallId;
    @Column(columnDefinition = "bigint(20) comment '商户ID'")
    private Long merchantId;
    @Column(columnDefinition = "bigint(20) comment '销售数'")
    private Integer saleCount;
    @Column(columnDefinition = "bigint(20) comment '分享数'")
    private Integer shareCount;
    @Column(columnDefinition = "bigint(20) comment '核销数'")
    private Integer verifyCount;
    @Column(columnDefinition = "bigint(20) comment '访问人数'")
    private Integer viewCount;
    @Column(columnDefinition = "bigint(20) comment '点击数'")
    private Integer clickCount;

    public Long getChannelId() {
        return channelId;
    }

    public void setChannelId(Long channelId) {
        this.channelId = channelId;
    }

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Integer getSaleCount() {
        return saleCount;
    }

    public void setSaleCount(Integer saleCount) {
        this.saleCount = saleCount;
    }

    public Integer getShareCount() {
        return shareCount;
    }

    public void setShareCount(Integer shareCount) {
        this.shareCount = shareCount;
    }

    public Integer getVerifyCount() {
        return verifyCount;
    }

    public void setVerifyCount(Integer verifyCount) {
        this.verifyCount = verifyCount;
    }

    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    public Integer getClickCount() {
        return clickCount;
    }

    public void setClickCount(Integer clickCount) {
        this.clickCount = clickCount;
    }

    @Override
    public String toString() {
        return "MerchantChannelStatistics{" +
                "channelId=" + channelId +
                ", id=" + id +
                ", mallId=" + mallId +
                ", dateCreated=" + dateCreated +
                ", merchantId=" + merchantId +
                ", saleCount=" + saleCount +
                ", lastUpdated=" + lastUpdated +
                ", shareCount=" + shareCount +
                ", verifyCount=" + verifyCount +
                ", isDelete=" + isDelete +
                ", version=" + version +
                ", viewCount=" + viewCount +
                ", clickCount=" + clickCount +
                '}';
    }
}
